projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94bcd6b
)
axs101: Fix type mismatch warning
author
Vasili Galka
<
[email protected]
>
Tue, 26 Aug 2014 14:50:29 +0000
(17:50 +0300)
committer
Alexey Brodkin
<
[email protected]
>
Tue, 26 Aug 2014 14:54:02 +0000
(18:54 +0400)
Initialization of pointer from integer shall be designated by explicit
type cast.
Signed-off-by: Vasili Galka <
[email protected]
>
Cc: Alexey Brodkin <
[email protected]
>
board/synopsys/axs101/nand.c
patch
|
blob
|
history
diff --git
a/board/synopsys/axs101/nand.c
b/board/synopsys/axs101/nand.c
index c7f90c4400d48a3e5e3a4a08d4a139becb5b4016..ff35286c6efdb2e14474830fc6fc5cee6df9da31 100644
(file)
--- a/
board/synopsys/axs101/nand.c
+++ b/
board/synopsys/axs101/nand.c
@@
-62,8
+62,10
@@
struct nand_bd {
uint32_t buffer_ptr1; /* DES3 */
};
-#define NAND_REG_WRITE(r, v) writel(v, CONFIG_SYS_NAND_BASE + r)
-#define NAND_REG_READ(r) readl(CONFIG_SYS_NAND_BASE + r)
+#define NAND_REG_WRITE(r, v) \
+ writel(v, (volatile void __iomem *)(CONFIG_SYS_NAND_BASE + r))
+#define NAND_REG_READ(r) \
+ readl((const volatile void __iomem *)(CONFIG_SYS_NAND_BASE + r))
static struct nand_bd *bd; /* DMA buffer descriptors */